﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" 
    CodeBehind="Information.aspx.cs" Inherits="NXBSaiGon.Account.Information" %>



<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   <h1>Account Information</h1>
   <hr />
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
        TypeName="NXBSaiGon.Account.Information"
        SelectMethod="getUserInformation"
        UpdateMethod="updateUserInformation">
    </asp:ObjectDataSource>

   <br />
            <div class="accountInfo">
                <fieldset class="changePassword">
                    <legend>Account Information</legend>
                    <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="308px" 
                        CellPadding="4" DataSourceID="ObjectDataSource1" ForeColor="#333333" 
                        GridLines="None" AutoGenerateRows="False" DataKeyNames="MaKhachHang">
                        <AlternatingRowStyle BackColor="White" />
                        <CommandRowStyle BackColor="#C5BBAF" Font-Bold="True" />
                        <EditRowStyle BackColor="#7C6F57" />
                        <FieldHeaderStyle BackColor="#D0D0D0" Font-Bold="True" />
                        <Fields>
                           <asp:TemplateField HeaderText="Full Name" SortExpression="TenKhachHang">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("TenKhachHang") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("TenKhachHang") %>'></asp:Label>
                            </ItemTemplate>
                           </asp:TemplateField>

                           <asp:TemplateField HeaderText="Address" SortExpression="DiaChi">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text="<%# Bind('DiaChi') %>"></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text="<%# Bind('DiaChi') %>"></asp:TextBox>
                            </EditItemTemplate>
                           </asp:TemplateField>

                           <asp:TemplateField HeaderText="Phone Number" SortExpression="DienThoai">
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text="<%# Bind('DienThoai') %>"></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server" Text="<%# Bind('DienThoai') %>"></asp:TextBox>
                            </EditItemTemplate>
                           </asp:TemplateField>

                           <asp:TemplateField HeaderText="Email" SortExpression="Email">
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text="<%# Bind('Email') %>"></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox4" runat="server" Text="<%# Bind('Email') %>"></asp:TextBox>
                            </EditItemTemplate>
                           </asp:TemplateField>

                           <asp:TemplateField HeaderText="CMND" SortExpression="CMND">
                            <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text="<%# Bind('CMND') %>"></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox5" runat="server" Text="<%# Bind('CMND') %>"></asp:TextBox>
                            </EditItemTemplate>
                           </asp:TemplateField>

                            <asp:CommandField ShowEditButton="True" />

                        </Fields>
                        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#E3EAEB" />
                    </asp:DetailsView>
                    
                </fieldset>
                <p class="submitButton">
                    <asp:Button ID="ChangePasswordPushButton" runat="server" 
                        CommandName="ChangePassword" Text="Change Password" 
                        onclick="ChangePasswordPushButton_Click"/>
                </p>
            </div>
    </asp:Content>
